<template>
  <el-card class="catd">
    <el-row type="flex" justify="space-between" align="middle">
      <el-col>
        <div v-show="showPrompt" class="hint">
          <i class="el-icon-info" />
          <slot name="before" />
        </div>
      </el-col>
      <el-col>
        <el-row type="flex" justify="end">
          <slot name="after" />
        </el-row>
      </el-col>
    </el-row>
  </el-card>
</template>

<script>
export default {
  name: 'VueAdminTemplateMasterIndex',
  props: {
    showPrompt: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {

    }
  },

  mounted() {

  },

  methods: {

  }
}
</script>

<style lang="scss" scoped>
.catd{
  padding: 0 10px;
  line-height: 35px;
  .hint{
  display: inline-block;
  padding: 0 5px;
  background-color: #e6f7ff;
  border: 1px solid #91d5ff;
  border-radius: 3px;
  font-size: 16px;
  text-align: center;
  .el-icon-info {
    color: #409eff;
    margin-right: 5px;
  }
}
}

</style>
